import re

noNewlineRegex = re.compile(r'.*')
mo = noNewlineRegex.search('Serve the public trust.\nProtect the innocent.')
print(mo.group())

noNewlineRegex2 = re.compile(r'.*', re.DOTALL)
mo2 = noNewlineRegex2.search('\nServe the public trust.\nProtect the innocent.\
\nUpload the law.')
print(mo2.group())
